Generate Xcode Project

Once the Vapor app has been created, you may generate the Xcode project.

In terminal, type the command:


vapor xcode -y

The -y only means “open the project in Xcode after creating it”.


Vapor toolbox mimics the directory structure into Xcode project.

So if you add a new directory and place the files there, there will be corresponding groups in Xcode project.

The best practice is to

  1. Exit Xcode
  1. Change your directory structure, add files
  1. Generate Xcode project

Prev: Make new Vapor App

Next: Install Docker


Vapor 3 Tutorial Start


#pub #vapor #swift #vapor-toolbox #xcode